package edu.ymu.cms.dao;

import edu.ymu.cms.model.Users;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

public interface UsersDao extends JpaRepository<Users,String> {

    @Query("select u from Users u where u.username=:username and u.pass=:pass")
    Users findUsersByUsernameAndAndPass(@Param("username")String username,@Param("pass")String pass);

}
